/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: max.jianhua
 * @Last Modified time: 2020-11-20 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 需求及完成情况分析 (DLR)

// /ttVsDemandPlan1/pageFinish 需求及完成情况分析-分页查询,厂端店端通过isDealer区分
export const queryList = (params) => axios.post(`${SERVER.WHOLESALES}/ttVsDemandPlan1/pageFinish`, params)



// 导出 /ttVsDemandPlan1/excelFinish
export const exportExcel = (params) => axios.post(`${SERVER.WHOLESALES}/ttVsDemandPlan1/excelFinish/c`, params, {
  responseType: 'blob'
});



// 导出 /ttVsDemandPlan1/excelFinish
// export const exportExcel = (params) => axios.post(`${SERVER.WHOLESALES}/ttVsDemandPlan1/excelFinish/d`, params, {
//   responseType: 'blob'
// });

// / 导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);
